Part Number Hot Search : 
MC78L05 C2420 SMBJ28CA 4HC15 CMM5104 SN5495AW LTC14 SN5495AW
Product Description
Full Text Search
 

To Download MSM82C59A-2 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1/28 ? semiconductor MSM82C59A-2rs/gs/js general description the MSM82C59A-2 is a programmable interrupt for use in msm80c85ah and msm80c86a- 10/88a-10 microcomputer systems. based on cmos silicon gate technology, this device features an extremely low standby current of 100 m a (max.) in chip non-selective status. during interrupt control status, the power consumption is very low with only 5 ma (max.) being required. internally, the MSM82C59A-2 can control priority interrupts up to 8 levels, and can be expanded up to 64 levels by cascade connection of a number of devices. features ? silicon gate cmos technology for high speed and low power consumption ? 3 v to 6 v single power supply ? msm80c85ah system compatibility (max5 mhz) ? msm80c86a-10/88a-10 system compatibility (max8 mhz) ? 8-level priority interrupt control ? interrupt levels expandable up to 64 levels ? programmable interrupt mode ? maskable interrupt ? automatically generated call code (85 mode) ? ttl compatible ? 28-pin plastic dip (dip28-p-600-2.54): (product name: MSM82C59A-2rs) ? 28-pin plastic qfj (qfj28-p-s450-1.27): (product name: MSM82C59A-2js) ? 32-pin plastic ssop (ssop32-p-430-1.00-k): (product name: MSM82C59A-2gs-k) ? semiconductor MSM82C59A-2rs/gs/js programmable interrupt controller e2o0021-27-x3 this version: jan. 1998 previous version: aug. 1996
2/28 ? semiconductor MSM82C59A-2rs/gs/js block diagram data bus buffer read/ write logic cascade buffer/ comparator control logic in- service register (isr) priority resolver interrupt request register (irr) interrupt mask register (imr) internal bus (8 bits) d 7 - d 0 rd wr a 0 cas 0 cas 1 cas 2 sp / en inta int ir 0 ir 1 ir 2 ir 3 ir 4 ir 5 ir 6 ir 7 cs MSM82C59A-2 internal block dia g ram
3/28 ? semiconductor MSM82C59A-2rs/gs/js pin configuration (top view) cs wr rd d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 cas 0 cas 1 gnd v cc ao inta ir 7 ir 6 ir 5 ir 4 ir 3 ir 2 ir 1 ir 0 int sp / en cas 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 28 pin plastic dip 28 pin plastic qfj cs wr rd nc d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 nc cas 0 v cc ao inta nc ir 7 ir 6 ir 5 ir 4 ir 3 ir 2 ir 1 ir 0 nc int 1 2 3 4 5 6 7 8 9 10 11 12 13 14 32 31 30 29 28 27 26 25 24 23 22 21 20 19 32 pin plastic ssop cas 1 15 gnd 16 sp / en 18 cas 2 17 d 6 5 d 5 6 d 4 7 d 3 8 d 2 9 d 1 10 d 0 11 ir 7 25 ir 6 24 ir 5 23 ir 4 22 ir 3 21 ir 2 20 ir 1 19 d 7 4 cas 0 12 rd 3 wr 2 cs 1 v cc 28 a0 27 inta 26 cas 1 13 gnd 14 cas 2 15 sp /e n 16 int 17 ir 0 18
4/28 ? semiconductor MSM82C59A-2rs/gs/js absolute maximum ratings C55 - +150 MSM82C59A-2rs power supply voltage v cc C0.5 - +7 v input voltage v in C0.5 - v cc +0.5 v output voltage v out C0.5 - v cc +0.5 v storage temperature t stg c power dissipation p d 0.7 w parameter unit symbol respect to gnd ta = 25c conditions rating MSM82C59A-2gs MSM82C59A-2js 0.9 0.9 operating ranges range power supply voltage v cc 3 - 6 v operating temperature t op C40 - +85 c parameter unit symbol recommended operating conditions typ. power supply voltage v cc 5v t op +25 "l" lebel input voltage v il "h" lebel input voltage v ih min. 4.5 -40 -0.5 2.2 max. 5.5 +85 +0.8 v cc +0.5 parameter unit symbol c v v operating temperature dc characteristics typ. max. "l" level output voltage v ol 0.4 v "h" level output voltage v oh v parameter unit symbol min. 3.0 v cc C0.4 i ol = 2.5 ma i oh = C2.5 ma i oh = C100 m a conditions v cc = 4.5 v - 5.5 v ta = C40c - +85c input leak current i li 1 m a output leak current i lo 10 m a C1 C10 0 v in v cc 0 v out v cc cs = v cc, ir = v cc v il = 0 v, v ih = v cc standby power supply current i ccs 0.1 100 m a 5ma v in = 0 v/v cc c l = 0 pf i cc average operation power supply current C300 10 m a ir input leak current i lir
5/28 ? semiconductor MSM82C59A-2rs/gs/js ac characteristics ac test circuits test point c1* r2 output from device under test v1 r1 * includes stray and jig capacitance r1 1 1.7 v 523 w open test condition r2 v1 2 4.5 v 1.8k w 1.8k w 100 pf c1 30 pf test condition definition table v ih +0.4 v input output v il C0.4 v 1.5v 1.5 v v oh v ol a. c. testing: all input signals must switch between v il C0.4 v and v ih +0.4 v. t r and t f must be less than of equal to 15 ns. a.c. testing input, output waveform min. max. address setup time (to rd ) t ahrl 10 ns address hold time (after rd ) t rhax 5 ns parameter unit symbol test conditions rd / inta pulse width t rlrh 160 ns address setup time (to wr ) t ahwl 0 ns wr pulse width t wlwh 190 ns data setup time (to wr ) t dvwh 160 ns data hold time (after wr ) t whdx 0 ns ir input width(low) t jljh 100 ns t cvial 40 ns t rhrl 160 ns end of rd to next rd end of inta to next inta end of wr to next wr t whwl 190 ns end of command to next command t chcl 400 ns data valid following rd / inta t rldv 120 ns data floating following rd / inta t rhdz 10 85 ns int output delay time t jhih 300 ns cas valid following 1 st. inta (master) t ialcv 360 ns en active following rd / inta t rlel 100 ns en inactive following rd / inta t rheh 150 ns data valid after address t ahdv 200 ns data valid after cas t cvdv 200 ns ta = C40c - +85c, v cc = 5 v 10% address hold time (after wr ) t whax 0 cas input setup time (to inta ) (slave) read inta timing write timing inta sequence other timing delay times 1 2 1 1 1 1 1 1
6/28 ? semiconductor MSM82C59A-2rs/gs/js timing chart write timing address bus wr cs a 0 data bus t wlwh t ahwl t whax t dvwh t whdx read/inta timing rd / inta t rlrh en cs a 0 address bus data bus t rlel t rheh t rhax t ahrl t rldv t ahdv t rhdz other timing rd / inta t rhrl wr rd / inta / wr rd / inta / wr t whwl t chcl
7/28 ? semiconductor MSM82C59A-2rs/gs/js ir t jhih t jljh inta int data bus cas address bus t cvial t cvdv t ialcv inta sequence (85 mode) inta sequence (86 mode) ir inta int data bus cas address bus
8/28 ? semiconductor MSM82C59A-2rs/gs/js pin function description d 7 - d 0 name bidirectional data bus input/output pin symbol input/output function rd read input input wr write input input a 0 address input input cas 0 - 2 cascade address input/output sp / en slave program input/enable buffer output input/output this 3-state 8-bit bidirectional data bus is used in reading status registers and writing command words through the rd / wr signal from the cpu, and also in reading the call instruction code by the inta signal from the cpu. cs chip select input input data transfer with the cpu is enabled by rd / wr when this pin is at low level. the data bus (d 0 thru d 7 ) is switched to high impedance when the pin is at high level. note that cs does not effect inta . data is transferred from the MSM82C59A-2 to the cpu when this pin is at low level. irr (interrupt request register), isr (in-service register), imr (interrupt mask register), or a poll word is selected by ocw3 and a 0 . commands are transferred from the cpu to the MSM82C59A-2 when this pin is at low level. this pin is used together with the cs , wr , and rd signals to write commands in the command registers, and to select and read status registers. this is normally connected to the least significant bit of the address bus. (a 0 for msm80c85ah, a 1 for msm80c86a-10/88a-10). these pins are outputs when the MSM82C59A-2 is used as the master, and inputs when used as a slave (in cascade mode). these pins are outputs when in single mode. this dual function pin is used as an output to enable the data bus buffer in buffered mode, and as an input for deciding whether the MSM82C59A-2 is to be master ( sp / en = 1) or slave ( sp / en =0) during non-buffered mode. int interrupt output output when an interrupt request is made to the MSM82C59A-2, the int output is switched to high level, and int interrupt is sent to the cpu. when this pin is at low level, the call instruction code or the interrupt vector data is enabled onto the data bus. when the cpu acknowledges the int interrupt, inta is sent to the MSM82C59A-2. (interrupt acknowledge sequence). these interrupt request input pins for the MSM82C59A-2 can be set to edge trigger mode or level trigger mode ( by icw1). in edge trigger mode, interrupt request is executed by the rising edge of the ir input and holds it until that input is acknowledged by the cpu. in level trigger mode, interrupt requests are executed by high level ir inputs and holds them until that input is acknowledged by the cpu. these pins have a pull up resistor. inta interrupt acknowledge input input ir 0 - 7 request input input
9/28 ? semiconductor MSM82C59A-2rs/gs/js system interface basic operation description data transfers between the 82c59a-2 internal registers and the data bus are listed below. a 0 address bus control bus d 7 - d 0 8 bits wr inta data bus MSM82C59A-2 cs rd int cascade address bus cas 0 cas 1 cas 2 sp / en ir 0 ir 1 ir 2 ir 3 ir 4 ir 5 ir 6 ir 7 slave program/enable buffer interrupt requests 1 0 0 0 0 a 0 function 1 0 0 1 d 4 0 1 d 3 0 1 1 1 0 rd 1 1 0 1 0 0 0 1 wr 0 1 0 irr, isr, or poll word ? data bus imr ? data bus data bus ? ocw2 data bus ? ocw3 data bus ? 1cw1 data bus ? ocw1, icw2, icw3, icw4 data bus set to high impedance (when inta = 1) combinations prohibited cs 0 0 0 0 0 0 0 1 opearation read read write write write write
10/28 ? semiconductor MSM82C59A-2rs/gs/js operation description the MSM82C59A-2 has been designed for real time interrupt driven microcomputer systems. the MSM82C59A-2 is capable of handling up to 8 levels of interrupt requests, and can be expanded to cover a maximum of 64 levels when connected to other MSM82C59A-2 devices. programming involves the use of system software in the same way as other microcomputer peripheral i/o devices. selection of priority mode involves program execution, and enables the method of requesting interrupts to be processed by the MSM82C59A-2 to be suitably configured for system requirements. that is, the priority mode can be dynamically updated or reconfigured during the main program at any time. a complete interrupt structure can be defined as required, based on the entire system environment. (1) functional description of each block (2) interrupt sequence the major features of the MSM82C59A-2 used in microcomputer systems are the programmability and the addressing capability of interrupt routines. this latter feature enables direct or indirect jumping to specific interrupt routines without polling the interrupt devices. the operational sequence during an interrupt varies for different cpus. the procedure for the 85 system (msm80c85ah) is outlined below. (i) one or more interrupt requests (ir 0 thru ir 7 ) becomes high, and the corresponding irr bit is set. (ii) the MSM82C59A-2 evaluates these requests, and sends an int signal to the cpu if the request is judged to be suitable. (iii) the cpu issues an inta output pulse upon reception of the int signal. (iv) upon reception of the inta signal from the cpu, the MSM82C59A-2 releases the call instruction code (11001101) to the 8-bit data bus. block name description of function irr, isr ir input line interrupts are processed by a cascaded interrupt request register (irr) and the in-service register (isr). the irr stores all request levels where interrupt service is requested, and the isr stores all interrupt levels being serviced. priority resolver this logic block determines the priority level of the bits set in the irr. the highest priority level is selected, and the corresponding isr bit is set during inta pulses. read/write logic this block is capable of receiving commands from the cpu. these command words (icw) and the operation command words (ocw) store the various control formats for MSM82C59A-2 operations. this block is also used to transfer the status of the MSM82C59A-2 to the data bus. cascade buffer comparator this functional block is involved in the output and comparison of all MSM82C59A-2 ids used in the system. these three i/o pins (cas 0 thru cas 2 ) are outputs when the MSM82C59A-2 operates as a master, and inputs when it operates as a slave. when operating as a master, the MSM82C59A-2 sends a slave id output to the slave where an interrupt has been applied. furthermore, the selected slave sends the preprogrammed subroutine address onto the data bus during next one or two inta pulses from the cpu.
11/28 ? semiconductor MSM82C59A-2rs/gs/js (v) a further two inta pulses are then sent to the MSM82C59A-2 from the cpu by this call instruction. (vi) these two inta pulses result in a preprogrammed subroutine address being sent from the MSM82C59A-2 to the data bus. the lower 8-bit address is released by the first inta pulse, and the higher 8-bit address is released by the second pulse. the falling edge of the second inta signal sets the isr bit with the highest priority, and the rising edge of it resets the irr bit. (vii) 3-byte call instructions are thus released by the MSM82C59A-2. in automatic end of interrupt (aeoi) mode, the irs bit is reset at the end of the third inta pulse. in other cases, the isr bit remains set until reception of a suitable eoi command at the end of the interrupt routine. the procedure for the 86 system (msm80c86a-10/88a-10) is identical to the first three steps of the 85 system. the subsequent steps are described below. (iv) upon reception of the inta signal from the cpu, the isr bit with the highest priority is set, and the corresponding irr bit is reset. in this cycle, the MSM82C59A-2 sets the data bus to high impedance without driving the data bus. (v) the cpu generates a second inta output pulse, resulting in an 8-bit pointer to the data bus by the MSM82C59A-2. the falling edge of the inta signal sets the isr bit with the highest priority, and the rising edge of it resets the irr bit. (vi) this completes the interrupt cycle. in aeoi mode, the isr bit is reset at the end of the second inta pulse. in other cases, the isr bit remains set until reception of 3 suitable eoi command at the end of the interrupt routine. if the interrupt request is canceled prior to step (iv), that is, before the first inta pulse has been received, the MSM82C59A-2 operates as if a level 7 interrupt has been received, and the vector byte and cas line operate as if a level 7 interrupt has been requested. (3) interrupt sequence output 85 mode (msm80c85ah) the sequence in this case consists of three inta pulses. a call operation code is released to the data bus by the first inta pulse. d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 1 1 0 0 1 1 0 1 call code contents of the first interrupt vector byte the lower address of the interrupt service routine is released to the data bus by the second inta pulse. if a 5 -a 7 are programmed with an address interval of 4, a 0 -a 4 are automatically inserted. and if a 6 and a 7 are programmed at an address interval of 8, a 0 -a 5 are automatically inserted. contents of the second interrupt vector byte
12/28 ? semiconductor MSM82C59A-2rs/gs/js contents of the second interrupt vector byte the higher address of the interrupt service routine programmed by the second bytes (a 8 - a 15 ) of the initialization sequence is released to the data bus. d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 a 15 a 14 a 13 a 12 a 11 a 10 a 9 a 8 contents of the third interrupt vector byte 86 mode (msm80c86a-10/88a-10) apart from the two interrupt acknowledge cycles and the absence of a call operation code, the 86 mode is the same as the 85 mode. the first inta cycle freezes interrupt status to resolve the priority internally in the same way as in 85 mode. when the device is used as a master, an interrupt code is issued to the cascade line at the end of the inta pulse. during this first cycle, the data bus buffer is kept at high impedance without any data to the cpu. during the second inta cycle, the MSM82C59A-2 sends a byte of interrupt code to the cpu. note that in 86 mode, the address interval (adi) control status is ignored and a 5 -a 10 is not used. ir interval = 4 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 7a 7 a 6 a 5 1110 0 a 7 a 6 a 5 1100 0 a 7 a 6 a 5 1010 0 a 7 a 6 a 5 1000 0 a 7 a 6 a 5 0110 0 a 7 a 6 a 5 0100 0 a 7 a 6 a 5 0010 0 6 5 4 3 2 1 a 7 a 6 a 5 0000 0 0 ir interval = 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 7a 7 a 6 1 1100 0 a 7 a 6 1 1000 0 a 7 a 6 1 0100 0 a 7 a 6 1 0000 0 a 7 a 6 0 1100 0 a 7 a 6 0 1000 0 a 7 a 6 0 0100 0 6 5 4 3 2 1 a 7 a 6 0 0000 0 0
13/28 ? semiconductor MSM82C59A-2rs/gs/js (4) programming the MSM82C59A-2 the MSM82C59A-2 receives two types of command words generated by the cpu. (i) initialization command words (icw1 thru icw4) before commencing normal operations, each MSM82C59A-2 in the system must be initialized by two to four wr pulse sequence. icw1 initialization sequence icw2 icw3 in cascade mode? is icw4 needed? interrupt request reception preparations completed icw4 no (sngl = 1) yes (sngl = 0) yes (ic4 = 1) no (ic4 = 0) contents of interrupt vector byte in 86 system mode d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 ir 7 t 7 t 6 t 5 t 4 t 3 111 t 7 t 6 t 5 t 4 t 3 110 t 7 t 6 t 5 t 4 t 3 101 t 7 t 6 t 5 t 4 t 3 100 t 7 t 6 t 5 t 4 t 3 011 t 7 t 6 t 5 t 4 t 3 010 t 7 t 6 t 5 t 4 t 3 001 ir 6 ir 5 ir 4 ir 3 ir 2 ir 1 t 7 t 6 t 5 t 4 t 3 000 ir 0
14/28 ? semiconductor MSM82C59A-2rs/gs/js (ii) operation command words (ocw1 thru ocw3) these commands are used in operating the MSM82C59A-2 in the following modes. a. fully nested mode b. rotating priority mode c. special mask mode d. polled mode the ocw can be written into the MSM82C59A-2 any time after initialization has been completed. (5) initialization command words (icw1 thru icw4) when a command is issued with d 4 = 1 and a 0 = 0, it is always regarded as an initialization command word 1 (icw1). starting of the initialization sequence by icw1 results in automatic execution of the following steps. a. the edge sense circuit is reset, and a low to high transition is necessary to generate an interrupt. b. the interrupt mask register is cleared. c. the ir 7 input is assigned priority 7 (lowest priority) d. slave mode address is set to 7. e. the special mask mode is cleared, and the status read is set to irr. f. all icw4 functions are cleared if ic4 = 0, resulting in a change to non-buffered mode, no- auto eoi, and 85 mode. note: master/slave in icw4 can only be used in buffered mode. (i) initialization command words 1 and 2 (icw1 and icw2) a 4 thru a 15 : (starting address of interrupt service routines) in 85 mode, 8 request levels call 8 locations at equivalent intervals in the memory. the memory location interval can be set at this stage to 4 or 8 by program. ( ? adi)hence, either 32 or 64 bytes/page respectively are used in the 8 routines. the address format is 2 bytes long (a 0 thru a 15 ). when the routine interval is 4, a 0 thru a 4 are inserted automatically by the msm82c59a- 2, and a 5 thru a 15 are programmed externally. when the interval is 8, on the other hand, a 0 thru a 5 are inserted automatically by the MSM82C59A-2, and a 6 thru a 15 are programmed externally. in 86 mode, t 3 thru t 7 are inserted in the 5 most significant bits of the vector type. and the MSM82C59A-2 sets the 3 least significant bits according to the interrupt level. a 0 thru a 10 are ignored, and the adi (address interval) has no effect. ltim: the MSM82C59A-2 is operated in level triggered mode when ltim = 1, and the interrupt input edge circuit becomes disabled. adi: designation of the call address interval. interval = 4 when adi = 1, and interval = 8 when adi = 0. sngl: sngl = 1 indicates the existence of only one MSM82C59A-2 in the system. icw3 is not required when sngl = 1. ic4: icw4 is required when this bit is set, but not required when ic4 = 0.
15/28 ? semiconductor MSM82C59A-2rs/gs/js (ii) initialization command word 3 (icw3) this command word is written when there is more than one MSM82C59A-2 used in cascade connections in the system, and is loaded into an 8-bit slave register. the functions of this slave register are listed below. a. in a master mode system (buf = 1 and m/ s = 1 in icw4 or sp / en = 1). 1 is set in each bit where a slave has been connected. in 85 mode, the master MSM82C59A-2 releases byte 1 of the call sequence to enable the corresponding slave to release byte 2 or 3 (only byte 2 in 86 mode) through the cascade line. b. in slave mode (buf = 1 and m/s = 0 in icw4 or sp / en = 0). bits 0 thru 2 identify the slave. the slave compares these bits with the cascade input, and releases bytes 2 and 3 of the call sequence (only byte 2 in 86 mode) if a matching result is obtained. (iii) initialization command word 4 (icw4) sfnm: special fully nested mode is programmed when sfnm = 1. buf: buffered mode is programmed when buf = 1. in buffered mode, sp / en is an output, and master/slave is selected by the m/s bit. m/s: if buffered mode is selected, the MSM82C59A-2 is programmed as the master when m/s = 1, and as a slave when m/s = 0. m/s is ignored, however, when buf = 0. aeoi: automatic end of interrupt mode is programmed by aeoi = 1. m pm: (microprocessor mode) the MSM82C59A-2 is set to 85 system operation when m pm = 0, and to 86 system operation when m pm = 1.
16/28 ? semiconductor MSM82C59A-2rs/gs/js a 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 icw1 0 a 7 a 6 a 5 1 ltim adi sngl ic4 1: icw4 required 0: icw4 not required a 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 1 a 15 /t 7 a 14 /t 6 a 13 /t 5 a 12 /t 4 a 11 /t 3 a 10 a 9 a 8 interrupt vector address a 8 thru a 15 (85 mode) interrupt vector address t 3 thru t 7 (86 mode) 1: single 0: cascade call address interval 1: interval = 4 0: interval = 8 1: level triggered mode 0: edge triggered mode interrupt vector address a 5 thru a 7 (valid only in 85 mode) icw2 1: ir input holds slave 0: ir input does not hold slave a 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 icw3 (master) 1 s 7 s 6 s 5 s 4 s 3 s 2 s 1 s 0 0 slave id 0 0 0 1 1 0 0 2 0 1 0 3 1 1 0 4 0 0 1 5 1 0 1 6 0 1 1 7 1 1 1 note: slave id indicates the ir input of the corresponding master. a 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 icw3 (slave) 1 0 0 0 0 0 id 2 id 1 id 0 1: 86 mode 0: 85 mode a 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 icw4 1 0 0 0 sfnm buf m/s aeoi m pm 1: automatic eoi mode 0: normal eoi mode 0 non-buffered mode 1 0 buffered mode (slave) 1 1 buffered mode (master) 1: special fully nested mode 0: not special fully nested mode initialization command words ( icw1 thru icw4 ) note: den 0 tes not specified
17/28 ? semiconductor MSM82C59A-2rs/gs/js (6) operation command words (ocw1 thru ocw3) when initialization command words (icws) are programmed in the MSM82C59A-2, the interrupt input line is ready to receive interrupt requests. the operation command words (ocws) enable the MSM82C59A-2 to be operated in various modes while the device is in operation. (i) operation command word 1 (ocw1) ocw1 sets and resets the mask bits of the interrupt mask register (imr). m0 thru m7 represent 8 mask bits. the channel is masked when m = 1, but is enabled when m = 0. (ii) operation command word 2 (ocw2) r, sl, eoi: the priority rotation and end of interrupt mode plus combinations of the two are controlled by combinations of these 3 bits. these combinations are listed in the operation command word format table. l2, l1, l0: these bits indicate the specified interrupt level when sl = 1. (iii) operation command word 3 (ocw3) esmm: this enables the special mask mode. the special mask mode can be set and reset by the smm bit when esmm = 1. the smm bit is ignored when esmm = 0. smm: (special mask mode) the MSM82C59A-2 is set to special mask mode when esmm = 1 and smm = 1, and is returned to normal mask mode when esmm = 1 and smm = 0. smm is ignored when esmm = 0.
18/28 ? semiconductor MSM82C59A-2rs/gs/js a 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 ocw1 1 m7 m6 m5 m4 m3 m2 m1 m0 0 active ir level 0 0 0 1 1 0 0 2 0 1 0 3 1 1 0 4 0 0 1 5 1 0 1 6 0 1 1 7 1 1 1 note: l0 thru l2 used a 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 0 r sl eoi 0 0 l2 l1 l0 ocw2 0 0 1 non-specific eoi command end of interrupt intterupt mask 1: mask set 0: mask reset 0 0 1 no operation polling 1: poll command 0: no-poll command read irr by next rd 0 1 0 a 0 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 read register command operation command words (ocw1 thru ocw3) ocw3 special mask mode 0 0 esmm smm 0 1 p rr ris 1 read isr by next rd 1 0 0 1 no operation reset special mask mode 0 1 0 1 set special mask mode 1 0 1 1 specific eoi command (note) 1 0 1 rotate on non-specific eoi command 1 0 0 rotate in automatic eoi mode (set) 0 0 0 rotate in automatic eoi mode (clear) 1 1 1 rotate on specific eoi command (note) 1 1 0 set priority comand (note) 0 1 0 no operation automatic rotation specific rotation
19/28 ? semiconductor MSM82C59A-2rs/gs/js (7) fully nested mode as long as the MSM82C59A-2 has not been programmed to another mode, this fully nested mode is set automatically after initialization. the interrupt requests are ordered in priority sequentially from 0 to 7 (where 0 represents highest priority). if an interrupt is then requested and is acknowledged highest priority, a corresponding vector address is released, and the corresponding bit in the in-service register (isr) is set. the is bit remains set until an end of interrupt (eoi) command is issued from the microprocessor before returning from the interrupt service routine, or until the rising edge of the last inta pulse arrives when the aeoi bit has been set. when the is bit is set, interrupts of the same or lower priority are inhibited - only interrupts of higher priority can be generated. in this case, interrupts can be acknowledged only when the internal interrupt enable f/f in the microprocessor has been enabled again through software. following the initialization sequence, ir0 has the highest priority, and ir7 has the lowest. this priority can be changed by rotating priority mode in ocw2. (8) end of interrupt (eoi) when the aeoi bit in icw4 is set, the in-service (is) bit is automatically reset by the rising edge of the last inta pulse, or else is reset only when an eoi command is issued to the MSM82C59A-2 prior to returning from the interrupt service routine. and in cascade mode, the eoi command must be issued twice - once for the master, and once for the corresponding slave. eoi commands are classified into specific eoi commands and non-specific eoi commands. when the MSM82C59A-2 is operated in fully nested mode, the is bit to be reset can be determined on eoi. if the non-specific eoi command is issued, the highest is bit of those that are set is reset automatically, because the highest is level is always the last servicing level in the fully nested mode, the MSM82C59A-2 will no longer be able to determine the last acknowledged level. in this case, it will be necessary to issue a specific eoi which includes the is level to be reset as part of the command. when the MSM82C59A-2 is in special mask mode, care must be taken to ensure that is bits masked by the imr bit can not reset by the non-specific eoi. (9) automatic end of interrupt (aeoi) mode when aeoi = 1 in icw4, the MSM82C59A-2 continues to operate in aeoi mode until programmed again by icw4. in this mode, the MSM82C59A-2 automatically performs non-specific eoi operation at the rising edge of the last inta pulse (the third pulse in 85 systems, and the second pulse in 86 systems). in terms of systems, this mode is best used in nested multiple level interrupt configurations. it is not necessary when there is only one MSM82C59A-2. aeoi mode is only used in a master MSM82C59A-2 device, not in a slave. (10) automatic rotation (devices with equal priority) in some applications, there is often a number of devices with equal priority. in this mode, the device where an interrupt service has just been completed is set to the lowest priority. at worst, therefore, a particular interrupt request device may have to wait for seven other devices to be serviced at least once each. there are two methods for automatic rotation using ocw2 - rotation on non-specific eoi command, and rotation in automatic eoi mode.
20/28 ? semiconductor MSM82C59A-2rs/gs/js is7 is6 is5 is4 is3 is2 is1 is0 0 1 0 1 0 0 0 0 7 6 5 4 3 2 1 0 lowest highest is status priority status before rotation (ir4 the highest priority requesting service) is7 is6 is5 is4 is3 is2 is1 is0 0 1 0 0 0 0 0 0 2 1 0 7 6 5 4 3 lowest highest is status priority status after rotation (ir4 was serviced, all other priorities rotated correspondingly) (11) specific rotation (specific priority) all priority levels can be changed by programming the lowest priority level (set priority command in ocw2). for example, if ir5 is programmed as the device of lowest priority, ir6 will have the highest priority. in this mode, the internal status can be updated during ocw2 by software control. this is unrelated, however, to the eoi command in the same ocw2. priority level can also be changed by using the ocw2 rotate on specific eoi command. (12) interrupt mask interrupt inputs can be masked individually by interrupt mask registers (imr) programmed through the ocw1. each interrupt channel is masked (disabled) when the respective imr bit is set to 1. ir0 is masked by bit 0, and ir1 is masked by bit 1. masking of any particular channel has no effect on other channels.
21/28 ? semiconductor MSM82C59A-2rs/gs/js (13) special mask mode in some applications, there is a need for dynamic updating of the systems priority level structure by software control during execution of an interrupt service routine. for example, it may be necessary to inhibit the lower priority requests for part of the execution of a certain routine while enabling for another part. in this case, it is difficult to enable all lower priority requests if the is bit has not yet been reset by the eoi command after an interrupt request has been acknowledge (during execution of a service routine). all of these requests would normally be disabled. hence the use of the special mask mode. when a mask bit is set by ocw1 in this mode, the corresponding interrupt level requests are disabled. and all other unmasked level requests (at both higher and lower priority levels) are enabled. interrupts can thus be enabled selectively by loading the mask register. in this mode, the specific eoi command should be used. this special mask mode is set by ocw3 esmm = 1 and smm = 1, and reset by esmm = 1 and smm = 0. (14) poll command in this mode, the int output is not used, the internal interrupt enable f/f of the microprocessor is reset, and interrupt inputs are disabled. servicing the i/o device is executed by software using the poll command. the poll command is issued by setting p in ocw3 to 1. the MSM82C59A-2 regards the next rd pulse as reception of an interrupt, and if there is a request, the corresponding is bit is set and the priority level is read out. interrupts are frozen between wr and rd . this mode is useful when there is a command routine for a number of levels, and the inta sequence is not required. rom space can thus be saved. d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 1 0 0 0 0 w2 w1 w0 poll word w0 thru w2: 1: binary coded highest priority level of service being requested. set to "1" when there is an interrupt.
22/28 ? semiconductor MSM82C59A-2rs/gs/js (15) reading MSM82C59A-2 status the status of a number of internal registers can be read out for updating user information on the system. the following registers can be read by means of ocw3 (irr and isr) and ocw1 (imr). a. irr: (interrupt request register) 8-bit register for storing interrupt requesting levels. b. isr: (in-service register) 8-bit register for storing priority levels being serviced. c. imr: (interrupt mask register) 8-bit register for storing interrupt request lines to be masked. the irr can be read when a read register command is issued with ocw3 (rr = 1 and ris = 0) prior to the rd pulse, and the isr can be read when a read register command is issued with ocw3 (rr = 1 and ris = 1) prior to the rd pulse. and as long as the read status does not change, ocw3 is not required each time before the status is read. this is because the MSM82C59A-2 remembers whether irr or isr was selected by the previous ocw3. but this is not true when poll is used. the MSM82C59A-2 is set to irr after initialization. ocw3 is not required to read imr. imr is issued to the data bus if rd = 0 and a 0 = 1 (ocw1). reading status is disabled by polling when p = 1 and rr = 1 in ocw3. (16) edge and level trigger mode this mode is programmed by using bit 3 (ltim) in icw1. when ltim = 0, the interrupt request is recognized by the ir input transition from low to high. as long as the ir input is kept at high, no other interrupt is generated. since interrupt requests are recognized by the ir input h level when ltim = 1, edge detection is not required. the interrupt request must be cancelled before output of the eoi command, and before the interrupt is enabled in order to prevent the generation of a second interrupt by the cpu. the ir input must be held at high level until the falling edge of the first inta pulse, irrespective of whether edge sense or level sense is employed. if the ir input is switched to low level before the first inta pulse, the default ir7 is generated when the interrupt is acknowledged by the cpu. this can be an effective safeguard to be adopted to detect interrupts generated by the noise glitches on the ir inputs. to take advantage of this feature, the ir7 routine is used as a clean up routine where the routine is simply executing a return instruction and the interrupt is subsequently ignored. when the ir7 is required for other purposes, the default ir7 can be detected by reading the isr. although correct ir7 interrupts involve setting of the corresponding isr bit, the default ir7 is not set. ir7 routine is7=1? ir7 service processing eoi no yes return (ir noise detection)
23/28 ? semiconductor MSM82C59A-2rs/gs/js (17) special fully nested mode this mode is used in large systems where the cascade mode is used and the respective interrupt requests within each slave have to be given priority levels. in this case, the special fully nested mode is programmed to the master by using icw4. this mode is practically identical to the normal fully nested mode, but differs in the following two respects. a. when an interrupt request is received from a particular slave during servicing, a new interrupt request from an ir with a higher priority level than the interrupt level of the slave being serviced is recognized by the master and the interrupt is applied to the processor without the master priority logic being inhibited by the slave. in normal fully nested mode, if the request is in service, a slave is masked and no other requests can be recognized from the same slave. b. when exiting from an interrupt service routine, it is first necessary to check whether or not the interrupt which has just been serviced by soft ware was the only interrupt from that slave. this is done by sending a non-specific eoi command to that slave, followed by reading of the in-service register (isr) to see whether that register has become all 0. a non-specific eoi is sent to the master too if the isr is empty, and if not no eoi should be sent. (18) buffered mode control for buffer enabling is required when the MSM82C59A-2 is used in a large system where a data bus drive buffer is needed and cascade mode is used. when buffered mode is selected, the MSM82C59A-2 sends an enable signal on the sp / en pin to enable the buffer. in this mode, the sp / en output always becomes active while the msm82c59a- 2s data bus output is enabled. therefore, the MSM82C59A-2 requires programming to enable it to distinguish master from slave. buffered mode is programmed by bit 3 in icw4, and the ability to distinguish master from slave is programmed by bit 2 in icw4. (19) cascade mode to enable the MSM82C59A-2 to handle up to 64 priority levels, a maximum of 8 slaves can be easily connected to one master device. the master controls the slaves through three cascade lines, the cascade bus executes like a slave chip select during the inta sequence. in cascade configuration, slave interrupt outputs (int) are connected to master interrupt request inputs (ir). when a slave ir becomes active and is acknowledged, the master enables the corresponding slave to release the routine address for that device during bytes 2 and 3 (only byte 2 in 86 mode) of the inta sequence. the cascade bus line is normally kept at low level, and holds the slave address during the period from the rising edge of the first inta pulse up to the rising edge of the third inta pulse (or the second inta pulse in 86 mode). each MSM82C59A-2 device in the system can operate in different modes in accordance with their initialization sequences. eoi commands must be issued twice, once for the master once for the corresponding slave. each MSM82C59A-2 requires an address decoder to activate the respective chip select (cs) inputs. since the cascade line is normally kept at low level, note that slaves must be connected to the master ir 0 only after all slaves have been connected to the other irs.
24/28 ? semiconductor MSM82C59A-2rs/gs/js address bus control bus data bus cs a 0 d 0 - 7 inta gnd sp / en 76543210 int cas 0 - 2 cs a 0 d 0 - 7 inta gnd sp / en 76543210 int cas 0 - 2 76543210 MSM82C59A-2 (slave) MSM82C59A-2 (slave) cs a 0 d 0 - 7 inta v cc sp / en m7 m6 m5 m4 m3 m2 m1 m0 int MSM82C59A-2 (master) interrupt requests 76543210 7 54 210 cascade bus MSM82C59A-2 cascade connections cas 0 - 2
25/28 ? semiconductor MSM82C59A-2rs/gs/js precautions for operation contents: in the case of a cascade edge trigger, the low level width (tilih) of a slave int signal may be less than the low level width (tjljh:100 ns min.) of a master ir input signal. this occurs when an interruption request with high order priority is provided to the slave unit before the inta cycle ends. fig.1 shows a system configuration, fig.2 a bug operation timing chart, and fig.3 a normal operation timing chart. tilih is not specified. cpu intr inta MSM82C59A-2 master intm int inta ir 7 ints MSM82C59A-2 slave inta ir 1 s ir 1 ir 2 s ir 2 ir 7 m int fi g . 1 s y stem confi g uration ir 2s ir 1s inta int s (ir 7 m) intm tilih (tjljh) does not satisfy the spec. int s is not accepted. fi g . 2 bu g o p eration timin g chart ir 2s tilih (tjljh) ir 1s inta int s (ir 7 m) intm fi g . 3 normal o p eration timin g chart
26/28 ? semiconductor MSM82C59A-2rs/gs/js (unit : mm) package dimensions notes for mounting the surface mount type package the sop, qfp, tsop, soj, qfj (plcc), shp and bga are surface mount type packages, which are very susceptible to heat in reflow mounting and humidity absorbed in storage. therefore, before you perform reflow mounting, contact okis responsible sales person for the product name, package name, pin number, package code and desired mounting conditions (reflow method, temperature and times). dip28-p-600-2.54 package material lead frame material pin treatment solder plate thickness package weight (g) epoxy resin 42 alloy solder plating 5 m m or more 4.30 typ.
27/28 ? semiconductor MSM82C59A-2rs/gs/js (unit : mm) notes for mounting the surface mount type package the sop, qfp, tsop, soj, qfj (plcc), shp and bga are surface mount type packages, which are very susceptible to heat in reflow mounting and humidity absorbed in storage. therefore, before you perform reflow mounting, contact okis responsible sales person for the product name, package name, pin number, package code and desired mounting conditions (reflow method, temperature and times). qfj28-p-s450-1.27 package material lead frame material pin treatment solder plate thickness package weight (g) epoxy resin cu alloy solder plating 5 m m or more 1.00 typ. spherical surface
28/28 ? semiconductor MSM82C59A-2rs/gs/js (unit : mm) notes for mounting the surface mount type package the sop, qfp, tsop, soj, qfj (plcc), shp and bga are surface mount type packages, which are very susceptible to heat in reflow mounting and humidity absorbed in storage. therefore, before you perform reflow mounting, contact okis responsible sales person for the product name, package name, pin number, package code and desired mounting conditions (reflow method, temperature and times). ssop32-p-430-1.00-k package material lead frame material pin treatment solder plate thickness package weight (g) epoxy resin 42 alloy solder plating 5 m m or more 0.60 typ. mirror finish


▲Up To Search▲   

 
Price & Availability of MSM82C59A-2

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X